<?php

class Errors extends ArrayObject {
	
	public function __construct( ) {
		parent::__construct ( array() );
	}

	public function append ( Error $_error ) {
		if ( $_error instanceof Error ) {
			parent::append($_error);
		} else {
			throw new IllegalArgumentException();
		}
	}
	
}

?>